<%@ page language="java" charset=UTF-8 "
	pageEncoding="UTF-8"%>
<!DOCTYPE html >
<html>
<head>
<title>Insert title here</title>
</head>
<body>
	<%
		request.setCharacterEncoding("UTF-8");
		String name = request.getParameter("userName");
		String password = request.getParameter("password");
		System.out.println(name + " " + password);
		if (Validate.checkUser(name, password)) {
	%>
	<jsp:forward page="login.jsp">
		<jsp:param name="userName" value="<%=name%>" />
	</jsp:forward>
	<%
		} else {
	%>
	<jsp:forward page="index.html" />
	<%
		}
	%>
</body>
</html>